import 'package:flutter/material.dart';
import 'package:flutter_app/view/sub_page/head/widget/song_top.dart';
import 'package:get/get.dart';

import 'logic.dart';
import 'state.dart';

class HeadPage extends StatelessWidget {
  final HomeLogic logic = Get.put(HomeLogic());
  final HomeState state = Get.find<HomeLogic>().state;

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        SongTop(
            onChanged: (String msg) => logic.onSearch(msg),
            onNotice: () => logic.onMsg()),
      ],
    );
  }
}
